package test;

import java.io.File;
import java.io.IOException;

public class Suishouce {
  
  void print() throws IOException {
    System.out.println(this.getClass().getResource(""));
    StringBuilder localPath = new StringBuilder();
    localPath.append(this.getClass().getResource("").getPath());
    localPath.append("/a.txt");
    System.out.println(localPath.toString());
    File destination = new File(localPath.toString());
    if(!destination.exists() ) {
      destination.createNewFile();
    }
  }

  public static void main(String[] args) throws IOException {
    new Suishouce().print();
  }

}
